package com.work.cos.mapper.base;

import org.apache.ibatis.annotations.Param;

import com.work.cos.domain.entity.CreditsLogEntity;
import com.work.cos.mapper.base.BaseMapper;
import com.work.cos.util.page.PageInfo;

public interface ICreditsLogMapper extends BaseMapper<CreditsLogEntity, Long>{
	
	/**
	 * 积分日志全局检索
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PageInfo<CreditsLogEntity> findCreditsLogByUserId(
			@Param("userId") Long userId, 
			@Param("pageNo")int pageNo, 
			@Param("pageSize") int pageSize);
	
	/**
	 * 新增积分日志
	 * @param creditsLogInfo
	 * @return
	 */
	int addCreditsLog(CreditsLogEntity entity);
}
